<div id="header" class="clearfix">

    <div id="we-speak-your-lang">

        <div class="title"></div>

        <?php
            $get = "";
            if (!empty($_GET)) {
                $get = $_GET;
                $get_currency = $_GET;

                if (isset($get['lang']))
                    unset($get['lang']);
                if (isset($get_currency['lang']))
                    unset($get_currency['lang']);
                if (isset($get_currency['currency']))
                    unset($get_currency['currency']);

                $get = http_build_query($get);
                $get_currency = http_build_query($get_currency);


                $get = $get == "" ? "" : "?" . $get;
                $get_currency = $get_currency == "" ? "" : "?" . $get_currency;
            }
        ?>


        <ul class="languages">
            <li><a href="<?= base_url($this->lang->switch_uri('en')) . $get ?>"><img src="<?= base_url() ?>assets/flags/en.png" alt="English" title="English" /></a></li>
            <li><a href="<?= base_url($this->lang->switch_uri('me')) . $get ?>"><img src="<?= base_url() ?>assets/flags/me.png" alt="Crnogorki" title="Crnogorski" /></a></li>
            <li><a href="<?= base_url($this->lang->switch_uri('ru')) . $get ?>"><img src="<?= base_url() ?>assets/flags/ru.png" alt="Rусский" title="Rусский" /></a></li>
            <li><a href="<?= base_url($this->lang->switch_uri('de')) . $get ?>"><img src="<?= base_url() ?>assets/flags/de.png" alt="Deutsch" title="Deutsch" /></a></li>
        </ul>

    </div>

    <div id="currencies" class="clearfix">

        <div class="title"><?= lang('header.currency') ?></div>

        <div class="currecny-holder">

            <select id="currency" name="currency" class="dropdownized" data-url="<?= base_url($this->uri->uri_string() . $get_currency); ?>">
                <option <? if ((isset($_GET['currency']) && $_GET['currency'] == 'EUR') || (!isset($_GET['currency']))) echo 'selected="selected"' ?> value="EUR"><span>&euro;</span> Euro</option>
                <option <? if (isset($_GET['currency']) && $_GET['currency'] == 'RUB') echo 'selected="selected"' ?> value="RUB"><span>RUB</span> Russian</option>
                <option <? if (isset($_GET['currency']) && $_GET['currency'] == 'USD') echo 'selected="selected"' ?> value="USD"><span>$</span> U.S. dollar</option>
            </select>
        </div>

    </div>
    <?php
        $ur = "";
        if (isset($_GET['currency']))
            $ur = "?currency=" . $_GET['currency']
            ?>
    <?php $logo_uri = "assets/img/header/bookmontenegro.png" ?>
    <div id="logo"><a href="<?= base_url($ur); ?>"><img src="<?= base_url() . $logo_uri ?>" alt="Bookmontenegro" title="Bookmontenegro" /></a></div>

</div>